package com.xd.common.config.annotation;


import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.xd.common.config.jpa.JpaAuditor;
import com.xd.common.config.swagger.SwaggerConfig;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.lang.annotation.*;

/**
 * 开启swagger配置
 * @author hbx
 */
@Target({ ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableKnife4j
@EnableSwagger2
@EnableConfigurationProperties(SwaggerConfig.class)
@ImportAutoConfiguration(classes = SwaggerConfig.class)
public @interface EnableSwaggerConfig {
}
